#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package}.demo.dao;

import ${package}.demo.common.IBaseDao;
import ${package}.demo.model.Product;
import com.ucarinc.framework.autoconfigure.ubatis.dao.BaseUbatisDaoImpl;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;


/**
 * @author liuxw
 * @date 2019/3/28
 * @since 1.0
 */
@Repository
public class ProductDaoImpl extends BaseUbatisDaoImpl implements IBaseDao<Product> {


    @Override
    public Integer save(Product entity) {
        return (Integer) super.insert("productSqlMap.save",entity);
    }

    @Override
    public Integer deleteById(Integer id) {
        return super.deleteObject("productSqlMap.delete",id);
    }

    @Override
    public List<Product> getPageList(Map map) {
        return super.queryForList("productSqlMap.getList",map);
    }

    @Override
    public Integer getPageListCount(Map map) {
        return (Integer)super.queryForObject("productSqlMap.getListCount",map);
    }
}
